import request from '@/utils/request'

// 查询Sport列表
export function listSport(query) {
  return request({
    url: '/api/v1/sport',
    method: 'get',
    params: query
  })
}

// 查询Sport详细
export function getSport(id) {
  return request({
    url: '/api/v1/sport/' + id,
    method: 'get'
  })
}

// 新增Sport
export function addSport(data) {
  return request({
    url: '/api/v1/sport',
    method: 'post',
    data: data
  })
}

// 修改Sport
export function updateSport(data) {
  return request({
    url: '/api/v1/sport/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除Sport
export function delSport(data) {
  return request({
    url: '/api/v1/sport',
    method: 'delete',
    data: data
  })
}

// 提示词
export function tips(data) {
  return request({
    url: '/api/v1/sport/tips',
    method: 'post',
    data: data
  })
}
